<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
    //用户列表
    Route::post('accountlist', 'AccountController@list');
    Route::post('createaccount', 'AccountController@createAccount');

    //修改用户
    Route::post('updateaccount', 'AccountController@updateAccount');
    //删除用户
    Route::post('delaccount', 'AccountController@del');
    //改变状态
    Route::post('changeaccountstate', 'AccountController@changeState');
    //重置密码
    Route::post('ResetPassword', 'AccountController@ResetPassword');
Route::group(['middleware' => ['refresh', 'auth:api']], function ($router) {
    //创建用户

});

